module.exports = {
	filterData (data, keyword) {
		return data.filter ((item) => {
			const phone_name = _trimSpace(item.phone_name).toLowerCase(),
				  slogan = _trimSpace(item.slogan).toLowerCase();

			return phone_name.includes(keyword) || slogan.includes(keyword);
		});

		function _trimSpace (str) {
			return str.replace(/\s+/g, '');
		}
	},

	
}